package com.roc.steelend.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.roc.steelend.pojo.SmallType;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface SmallTypeMapper extends BaseMapper<SmallType> {


    List<HashMap<String,Object>>  findSmallTypeByBigType(@Param("bigTypeId")Integer bigTypeId);

    List<HashMap<String,Object>> findSmallTypeShowReverse();

    List<HashMap<String,Object>> findSmallTypeShowDetail(@Param("now")Integer now,
                                                         @Param("size")Integer size,
                                                         @Param("bigTypeId")Integer bigTypeId);

    Integer findSmallTypeShowDetailCount(@Param("bigTypeId")Integer bigTypeId);
}
